package site.liuming.truismcms.core.storage;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value="classpath:storage/qiniu.properties")
@Configuration
public class QiNiuStorageConfiguration {

    @Value(value = "${OSS.domain}")
    private String domain;

    @Value(value = "${OSS.bucketName}")
    private String bucketName;

    @Value(value = "${OSS.accessKey}")
    private String accessKey;

    @Value(value = "${OSS.secretKey}")
    private String secretKey;

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }
}
